<?php

namespace app\common\validate\Business;

// 引入模块
use think\Validate;

/**
 * 地区数据模型
 */
class Record extends Validate
{
     // require 必填，unique表示该字段在pre_business属于唯一字段
    protected $rule =   [
        'total'  => 'require|unique:business',
        'password'   => 'require',
        'salt' => 'require',
    ];

    protected $message  =   [
        'mobile.require' => '手机号码必须填写',
        'mobile.unique'     => '手机号码必须是唯一的值',
        'password.require'   => '密码必须填写',
        'salt.require'  => '密码盐必须填写',
    ];
}
